<%@ page language="java" contentType="text/html; charset=utf-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<%@ include file="/commons/commonEdit.jsp" %>
<%@ include file="/commons/validation.jsp"%>
<%@ include file="/commons/dateTime.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript" src="${ctx }/scripts/public3.js"></script>
<script type="text/javascript" src="${ctx}/scripts/common/prototype.js"></script>
<script type="text/javascript" src="${ctx}/scripts/ajaxException.js"></script>
<script type="text/javascript" src="${ctx}/scripts/div/common.js"></script>
<title>高级搜索</title>
<script type="text/javascript">
function openSelectHouse(){
	var ownerUrl = PROJECT_NAME_PATH_MYCE + "/customer_chooseSingleHouseAction.do?method=chooseBuildingMain";
	ownerUrl += "&parentFrameId=inspectionRequisitionSearchIfram";
	top.windowOpen(ownerUrl , "chooseBuildFrm", "选择房间",500,800);
}

function setHouseInfo(houseId,houseNum){	//设置房号
	$('houseNumber').value = houseNum;
	$('houseNumber').fireEvent("onblur");
}

function setSearchCondition(){
	   var url="${ctx}/renovation_inspectionRequisitionAction.do?method=setSearchPramCatch";
	   var params = Form.serialize('searchForm');

	   new Ajax.Request(url,{method: 'post', parameters: params, onComplete: showResponse});
	}
	function showResponse(response){

		var obj=findFrame('inspectionRequisitionList');
		obj.parent.refresh();
		windowClose();
	}
</script>
</head>
<body>
<form action="" method="post" name="searchForm" id="searchForm">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td class="window_head_outBg"><table border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td><img src="${ctx}/images/ico_Advance.gif" width="16" height="16" align="absmiddle"> <span class="window_head_intext">高级查询</span></td>
        </tr>
    </table></td>
  </tr>
  <tr>
    <td class="aux_header_line_1"></td>
  </tr>
  <tr>
    <td class="aux_header_line_2"></td>
  </tr>
  <tr>
    <td class="content"><table width="100%" ""border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td valign="top" class="aux_outtable_color"><table width="100%" border="0" cellpadding="0" cellspacing="1" class="aux_intable_color">


          <tr>
            <td class="aux_intable_td1">楼 栋：</td>
            <td class="aux_intable_td2">
            <pms:unitedSelect
           		name="buildingId"
           		id="buildingId"
           		optionLabel="name"
           		optionValue="keyword"
           		selectText="请选择"
           		dataList="${buildingList }">
           	</pms:unitedSelect>
            </td>
            <td class="aux_intable_td1">接单人：</td>
            <td class="aux_intable_td2"><input name="annalMan" id="annalMan" type="text" class="inputtext" value="" size="16"></td>
          </tr>
          <tr>
            <td class="aux_intable_td1">房 号：</td>
            <td class="aux_intable_td2"><table border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td><input name="houseNumber" id="houseNumber" type="text" class="inputtext" size="16"></td>
                <td width="4">&nbsp;</td>
                <td><img src="${ctx}/images/ico_houesno.GIF" alt="请点选查找房号" onclick="javascript:openSelectHouse();" border="0"></td>
              </tr>
            </table></td>
            <td class="aux_intable_td1">初验结果：</td>
            <td class="aux_intable_td2"><select name="firstInspectionResult" id="firstInspectionResult" style="width:110px;">
                    <option selected="selected" value="">请选择...</option>
                    <option value="001">通过</option>
					<option value="002">不通过</option>
                  </select></td>
          </tr>
          <tr>
            <td class="aux_intable_td1">业主姓名：</td>
            <td class="aux_intable_td2"><input name="owner" id="owner" type="text" class="inputtext" value="" size="16"></td>
            <td class="aux_intable_td1">复验结果：</td>
            <td class="aux_intable_td2"><select name="reinspectionResult" id="reinspectionResult" style="width:110px;">
                    <option selected="selected" value="">请选择...</option>
                    <option value="004">通 过</option>
					<option value="003">不通过</option>
                  </select></td>
          </tr>
          <tr>
            <td class="aux_intable_td1">装修许可证号：</td>
            <td class="aux_intable_td2"><input name="renovateLicenceNO" type="text" class="inputtext" value="" size="16"></td>
            <td class="aux_intable_td1">&nbsp;</td>
            <td class="aux_intable_td2">&nbsp;</td>
          </tr>
          <tr>
            <td class="aux_intable_td1">申请验收时间：</td>
            <td colspan="3" class="aux_intable_td2"><table border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td><input name="beginInspectionDate" id="beginInspectionDate" type="text" class="inputtext" size="16"></td>
                <td width="4">&nbsp;</td>
                <td><img id="beginInspectionDateImg" src="${ctx}/images/ico_clock.gif" alt="请点选查找日期" border="0"></td>
                <td width="4">&nbsp;至&nbsp;</td>
                <td><input name="endInspectionDate" id="endInspectionDate" type="text" class="inputtext" size="16"></td>
				<td width="4">&nbsp;</td>
                <td><img id="endInspectionDateImg" src="${ctx}/images/ico_clock.gif" alt="请点选查找日期" border="0"></td>
              </tr>
            </table></td>
            </tr>
          <tr>
            <td class="aux_intable_td1">接单时间：</td>
            <td colspan="3" class="aux_intable_td2"><table border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td><input name="beginAnnalDate" type="text" class="inputtext" size="16"></td>
                <td width="4">&nbsp;</td>
                <td><img id="beginAnnalDateImg" src="${ctx}/images/ico_clock.gif" alt="请点选查找日期" border="0"></td>
                <td width="4">&nbsp;至&nbsp;</td>
                <td><input name="endAnnalDate" type="text" class="inputtext" size="16"></td>
				<td width="4">&nbsp;</td>
                <td><img id="endAnnalDateImg" src="${ctx}/images/ico_clock.gif" alt="请点选查找日期" border="0"></td>
              </tr>
            </table></td>
          </tr>

        </table></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td class="window_footer"><table border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><table border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td class="buttonOffLeft" id="btn1_21"></td>
              <td class="buttonOffMiddle" id="btn1_22" onClick="javascript:setSearchCondition();" onMouseOver="btn_change_over(2)" onMouseOut="btn_change_out(2)" onblur="btn_change(2)"><img src="${ctx}/images/ico_ok.gif" alt="" width="14" height="14" border="0" align="absbottom"> 确 定</td>
              <td class="buttonOffRight" id="btn1_23"></td>
            </tr>
        </table></td>
        <td class="btn_between_space"></td>
        <td><table border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td class="buttonOffLeft" id="btn1_31"></td>
              <td class="buttonOffMiddle" id="btn1_32" onClick="javascript:windowClose();" onMouseOver="btn_change_over(3)" onMouseOut="btn_change_out(3)" onblur="btn_change(3)"><img src="${ctx}/images/ico_cancel.gif" alt="" width="14" height="14" border="0" align="absbottom"> 取 消</td>
              <td class="buttonOffRight" id="btn1_33"></td>
            </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
</form>
<script type="text/javascript">
             Calendar.setup(
              {
	              inputField : "beginInspectionDate", // ID of the input field
	              ifFormat : "%Y-%m-%d", // the date format
	              button : "beginInspectionDateImg", // ID of the button
	             // align          :    "Tl",           // alignment (defaults to "Bl")
			      singleClick    :    true
              }
              );
             Calendar.setup(
                     {
       	              inputField : "endInspectionDate", // ID of the input field
       	              ifFormat : "%Y-%m-%d", // the date format
       	              button : "endInspectionDateImg", // ID of the button
       	             // align          :    "Tl",           // alignment (defaults to "Bl")
       			      singleClick    :    true
                     }
                     );
             Calendar.setup(
                     {
       	              inputField : "beginAnnalDate", // ID of the input field
       	              ifFormat : "%Y-%m-%d", // the date format
       	              button : "beginAnnalDateImg", // ID of the button
       	             // align          :    "Tl",           // alignment (defaults to "Bl")
       			      singleClick    :    true
                     }
                     );
             Calendar.setup(
                     {
       	              inputField : "endAnnalDate", // ID of the input field
       	              ifFormat : "%Y-%m-%d", // the date format
       	              button : "endAnnalDateImg", // ID of the button
       	             // align          :    "Tl",           // alignment (defaults to "Bl")
       			      singleClick    :    true
                     }
                     );

</script>
</body>
</html>